package com.dlwx.firefighting.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.dlwx.firefighting.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class BrowseActivity extends BaseActivity {

    @BindView(R.id.image)
    ImageView image;
    @BindView(R.id.close_img)
    ImageView closeImg;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_browse);
        ButterKnife.bind(this);
        String path = getIntent().getStringExtra("path");
        Glide.with(this).load(path).crossFade().error(R.mipmap.error_small1).placeholder(R.mipmap.error_small).into(image);
    }

    @OnClick({ R.id.close_img})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.close_img:
                 this.finish();
                break;
        }
    }
}
